# -*- coding: UTF-8 -*-
# @Project ：opencv 
# @File    ：global关键字.py
# @Author  ：于金龙
# @IDE     ：PyCharm 
# @Date    ：2024/4/7 11:09
COUNTRY = '中国'
TRY_LISTS = ["北京", "上海", "深圳"]


def get_country():
    global COUNTRY
    COUNTRY = "美国"
    print(COUNTRY)


def update_country_lists():
    global TRY_LISTS
    TRY_LISTS = ['河北', '河南', '山东']
    print(TRY_LISTS)


if __name__ == '__main__':
    get_country()
    update_country_lists()
    print(COUNTRY)
    print(TRY_LISTS)
